import org.dreamwork.seagragon.Runtime;
import org.dreamwork.seagragon.filesystem.FSServletContext;

import javax.servlet.http.HttpSession;
import java.io.File;

/**
 * Created by IntelliJ IDEA.
 * User: seth
 * Date: 2010-5-5
 * Time: 19:25:50
 */
public class Test {
    public static void main (String[] args) throws Exception {
        FSServletContext context = new FSServletContext ("test", new File ("D:\\workspace\\seth\\developersbus\\test-module\\web"), System.out);
        Runtime rt = Runtime.getRuntime (context);
        HttpSession session = rt.createHttpSession ();
        session.setAttribute ("test", "yyyy");
        String id = session.getId ();
        rt.executeWebPage ("/other.jasmine", System.out, id);
    }
}